function cityByProvince(pcode){
	$.ajax({
		url : '/partner/citys?provinceCode='+pcode,
		type : 'get',
		dataType : 'json',
		success : function(data) {
			var cityname='<option value="">市级</option>';
			$.each(data, function(index, val) {
				var ccode = val.cityCode;
				var cname = val.cityName;
				cityname = cityname + '<option value='+ccode+'>'+cname+"</option>";
			});
			$('#cname').html(cityname);
		},
		error: function(){
			var cityname='<option value="">市级</option>';
			$('#cname').html(cityname);
			var areaname='<option value="">区县</option>';
			$('#area').html(areaname);
		}
	});
}

function areaByCity(ccode){
	$.ajax({
		url : '/partner/areas?cityCode='+ccode,
		type : 'get',
		dataType : 'json',
		success : function(data) {
			var areaname='<option value="">区县</option>';
			$.each(data, function(index, val) {
				var acode = val.areaCode;
				var aname = val.areaName;
				areaname = areaname + '<option value='+acode+'>'+aname+"</option>";
			});
			$('#area').html(areaname);
		},
		error: function(){
			var areaname='<option value="">区县</option>';
			$('#area').html(areaname);
		}
	});
}